/*---------------------------------------------------------------------
 * File name: hal_timer.cpp
 *
 * Copyright (c) <2020-2022>, <ChenLong>
 *
 * All rights reserved.
 *
 * Author: ChenLong
 * Email: worldlong@foxmail.com
 *--------------------------------------------------------------------*/
#pragma once
/*
*/
#include <cstdint>
#include <cstring>
/*
*/
class HAL_DMA
{
public:
  HAL_DMA(){}
  
  static void set_irq_hook(int index, void (*irq_hook)(void *param, uint32_t status), void *irq_hook_param);
  static uint32_t get_channel(int index);
  static uint8_t get_irqn(int index);
  static void enable(int index);
  static void disable(int index);
  static int get_index(uint32_t dma_ch);
};



